package exp2;

/**
 * Created by 匪夷所思 on 2018/4/16.
 */
public class StringBufferDemo{
       public static void main(String [] args){
           StringBuffer buffer = new StringBuffer();
           buffer.append('S');
           buffer.append("tringBuffer");
           System.out.println(buffer.charAt(1));
           System.out.println(buffer.capacity());
           System.out.println(buffer.indexOf("tring"));
           System.out.println("buffer = " + buffer.toString());
       }
}
